home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / LongDistPhoneNumberBeanInfo.java < prev    next >
Text File  |  1998-08-21  |  2KB  |  51 lines

  1. package symantec.itools.awt.util.edit;
  2.  
  3. import java.beans.*;
  4. import symantec.itools.beans.*;
  5.  
  6. //  09/13/97    LAB    Removed extranious getPropertyDescriptors method and
  7. //                    removed extranious getMethodDescriptors method.
  8.  
  9. /**
  10.  * BeanInfo for LongDistPhoneNumber.
  11.  *
  12.  */
  13. public class LongDistPhoneNumberBeanInfo extends SimpleBeanInfo {
  14.  
  15.     /**
  16.      * Constructs a LongDistPhoneNumberBeanInfo object.
  17.      */
  18.     public LongDistPhoneNumberBeanInfo() {
  19.     }
  20.  
  21.     /**
  22.      * Gets a BeanInfo for the superclass of this bean.
  23.      * @return BeanInfo[] containing this bean's superclass BeanInfo
  24.      */
  25.     public BeanInfo[] getAdditionalBeanInfo() {
  26.         try {
  27.             BeanInfo[] bi = new BeanInfo[1];
  28.             bi[0] = Introspector.getBeanInfo(beanClass.getSuperclass());
  29.             return bi;
  30.         }
  31.         catch (IntrospectionException e) { throw new Error(e.toString());}
  32.     }
  33.  
  34.     /**
  35.      * Gets the SymantecBeanDescriptor for this bean.
  36.      * @return an object of type SymantecBeanDescriptor
  37.      * @see symantec.itools.beans.SymantecBeanDescriptor
  38.      */
  39.     public BeanDescriptor getBeanDescriptor() {
  40.         SymantecBeanDescriptor bd = new SymantecBeanDescriptor(beanClass);
  41.  
  42.         return (BeanDescriptor) bd;
  43.     }
  44.  
  45.     public MethodDescriptor[] getMethodDescriptors() { return new MethodDescriptor[0]; }
  46.  
  47.     public PropertyDescriptor[] getPropertyDescriptors() { return new PropertyDescriptor[0]; }
  48.  
  49.     private final static Class beanClass = LongDistPhoneNumber.class;
  50.  
  51.     }    //  end of class LongDistPhoneNumberBeanInfo